<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div><span></span><span></span><span></span></div>
    <script>
        /**
         * querySelectorAll('css选择符')
         * 返回一个NodeList的静态实例, 是静态的不是实时的
        */
       const spans = document.querySelector('div').querySelectorAll('span')
       console.log(spans) // NpdeList[3]

       
    </script>
</body>
</html>